package com.kgc.personprovider.dao;

import com.kgc.personcommon.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PermissionMapper {
    List<Permission> getAll(Map<String, Object> params);
    int getCount(Map<String, Object> params);
    int addPermission(Permission permission);
    int updatePermission(Permission permission);
    int deletePermission(Integer id);
    Permission getPermissionById(Integer id);
    List<Permission> getAllPermissions(Map<String, Object> params);
    Permission getPermByPath(String purl);
}
